package com.examination.client.wxs;

import com.examination.client.annotation.PassToken;
import com.examination.client.domian.vo.DeliveryInfoVO;
import com.examination.client.domian.vo.ScanInfoVO;
import com.examination.client.service.ICourierInfoService;
import com.examination.client.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;


@RestController
@Api(tags = "快递入库管理")
@RequestMapping("/wxs/courier")
@CrossOrigin(origins = "*")
public class WxsCourierInfoController {


    @Resource
    ICourierInfoService courierInfoService;


    @GetMapping("/findInfo")
    @ApiOperation("快递信息")
    public Result<List<ScanInfoVO>> findInfo(@RequestParam("courierCode") String courierCode,@RequestParam("userName") String userName,@RequestParam("password") String password) throws Exception {
        return Result.success(courierInfoService.infoWxs(courierCode,userName,password));
    }
}
